package com.hyperfix.washer.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hyperfix.models.common.R;
import com.hyperfix.models.washer.dtos.PipelineDTO;
import com.hyperfix.models.washer.dtos.PipelineS;
import com.hyperfix.models.washer.dtos.PipelineT;
import com.hyperfix.models.washer.pojos.Pipeline;
import com.hyperfix.models.washer.vos.PipelineQueryVO;
import com.hyperfix.models.washer.vos.PipelineVO;

import java.util.List;

/**
 * @author JiangChunYu
 * 2024/4/14
 */
public interface PipelineService extends IService<Pipeline> {
    R<IPage<PipelineDTO>> list(Integer pageNum, Integer size, PipelineQueryVO pipelineQueryVO);

    R<Pipeline> queryInit();

    R<String> togglePipeline(String pipelineName);

    R<List<PipelineS>> listAllWithStation();

    R<String> enablePipeline(Integer pipelineId, Integer stop);

    R<String> changeCycle(Integer pipelineId, Long period);

    List<PipelineT> listAllWithStatus();

    R<String> updatePipeline(PipelineVO pipelineVO);
}
